﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class BUS_DeTai
    {
        public static List<DTO_DeTai> selectDeTai_TheoGiangVien(string MaGV)
        {
            return DAO.DAO_DeTai.selectDeTai_TheoGiangVien(MaGV);
        }
        public static List<DTO_DeTai> selectDeTai_TrangThai(bool trangthai)
        {
            return DAO_DeTai.selectDeTai_TrangThai(trangthai);
        }
        public static bool insertDeTai(DTO_DeTai detai)
        {
            return DAO.DAO_DeTai.insertDeTai(detai);
        }
        public static bool UpdatetDeTai(DTO_DeTai detai)
        {
            return DAO.DAO_DeTai.UpdateDeTai(detai);
        }
        public static bool DeleteDeTai(string madt)
        {
            return DAO_DeTai.DeleteDeTai(madt);
        }
        public static bool KiemtraTrangThaiDetai(string Madt)
        {
            return DAO.DAO_DeTai.KiemtraTrangThaiDetai(Madt);
        }
        public static bool UpdateTrangThaiDeTai(string Madt, bool trangthai)
        {
            return DAO_DeTai.UpdateTrangThaiDeTai(Madt, trangthai);
        }
        public static bool XoamemDeTai(string Madt)
        {
            return DAO.DAO_DeTai.XoamemDeTai(Madt);
        }
        public static bool Update_SVHH()
        {
            return DAO_DeTai.Update_SVHH();
        }
        public static List<DTO_DeTai> selectDeTai_ALL_ChonDT()
        {
            return DAO_DeTai.selectDeTai_ALL_ChonDT();
        }
        public static List<DTO_DeTai> ChonDT_TheoLoaiDT(string maloaidt)
        {
            return DAO_DeTai.ChonDT_TheoLoaiDT(maloaidt);
        }
        public static List<DTO_DeTai> selectDeTai_TheoMaDT(string madt)
        {
            return DAO_DeTai.selectDeTai_TheoMaDT(madt);
        }
        public static int TongSVToiDa_TheoMaCN(string macn)
        {
            return DAO_DeTai.TongSVToiDa_TheoMaCN(macn);
        }
        public static int TongSVHH_TheoMaCN(string macn)
        {
            return DAO_DeTai.TongSVHH_TheoMaCN(macn);
        }
        public bool kiemtraDetai_giangvien(string magv)
        {
            return DAO_DeTai.KiemtraTrangThaiDetai(magv);
        }
        public static List<DTO_DeTai> selectDeTai_ALL()
        {
            return DAO_DeTai.selectDeTai_ALL();
        }
        public static List<DTO_DeTai> Detai_report_theonam_theohocky(string hocky, int namhoc)
        {
            return DAO_DeTai.Detai_report_theonam_theohocky(hocky, namhoc);
        }
            public static List<DTO_DeTai> Detai_report_theonam( int namhoc)
        {
            return DAO_DeTai.Detai_report_theonam(namhoc);
        }
    }
}
